home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIDOMSVGPathSeg.idl < prev    next >
Text File  |  2006-05-08  |  10KB  |  282 lines

  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is the Mozilla SVG project.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Crocodile Clips Ltd..
  19.  * Portions created by the Initial Developer are Copyright (C) 2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  27.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #include "domstubs.idl"
  40.  
  41. [scriptable, uuid(b9022da7-e26d-4df3-8c94-b45c4aedda7c)]
  42. interface nsIDOMSVGPathSeg : nsISupports
  43.   // Path Segment Types
  44.   const unsigned short PATHSEG_UNKNOWN                      = 0;
  45.   const unsigned short PATHSEG_CLOSEPATH                    = 1;
  46.   const unsigned short PATHSEG_MOVETO_ABS                   = 2;
  47.   const unsigned short PATHSEG_MOVETO_REL                   = 3;
  48.   const unsigned short PATHSEG_LINETO_ABS                   = 4;
  49.   const unsigned short PATHSEG_LINETO_REL                   = 5;
  50.   const unsigned short PATHSEG_CURVETO_CUBIC_ABS            = 6;
  51.   const unsigned short PATHSEG_CURVETO_CUBIC_REL            = 7;
  52.   const unsigned short PATHSEG_CURVETO_QUADRATIC_ABS        = 8;
  53.   const unsigned short PATHSEG_CURVETO_QUADRATIC_REL        = 9;
  54.   const unsigned short PATHSEG_ARC_ABS                      = 10;
  55.   const unsigned short PATHSEG_ARC_REL                      = 11;
  56.   const unsigned short PATHSEG_LINETO_HORIZONTAL_ABS        = 12;
  57.   const unsigned short PATHSEG_LINETO_HORIZONTAL_REL        = 13;
  58.   const unsigned short PATHSEG_LINETO_VERTICAL_ABS          = 14;
  59.   const unsigned short PATHSEG_LINETO_VERTICAL_REL          = 15;
  60.   const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS     = 16;
  61.   const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL     = 17;
  62.   const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
  63.   const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
  64.  
  65.   readonly attribute unsigned short pathSegType;
  66.   readonly attribute DOMString      pathSegTypeAsLetter;
  67. };
  68.  
  69.  
  70. [scriptable, uuid(2b72d033-f115-45aa-9748-8c11ea07b845)]
  71. interface nsIDOMSVGPathSegClosePath : nsIDOMSVGPathSeg
  72. {
  73. };
  74.  
  75.  
  76. [scriptable, uuid(b0106d01-9746-440b-b067-68ee043dabc3)]
  77. interface nsIDOMSVGPathSegMovetoAbs : nsIDOMSVGPathSeg
  78.   attribute float   x;
  79.               // raises nsIDOMDOMException on setting
  80.   attribute float   y;
  81.               // raises nsIDOMDOMException on setting
  82. };
  83.  
  84. [scriptable, uuid(c6ee1ddd-8b35-4e1b-b381-c063a28012d9)]
  85. interface nsIDOMSVGPathSegMovetoRel : nsIDOMSVGPathSeg
  86.   attribute float   x;
  87.               // raises nsIDOMDOMException on setting
  88.   attribute float   y;
  89.               // raises nsIDOMDOMException on setting
  90. };
  91.  
  92. [scriptable, uuid(bac3648d-55a3-491b-9863-a18fd7506689)]
  93. interface nsIDOMSVGPathSegLinetoAbs : nsIDOMSVGPathSeg
  94.   attribute float   x;
  95.               // raises nsIDOMDOMException on setting
  96.   attribute float   y;
  97.               // raises nsIDOMDOMException on setting
  98. }; 
  99.  
  100. [scriptable, uuid(3294d20e-c707-4e59-a625-bde93fc0b25f)]
  101. interface nsIDOMSVGPathSegLinetoRel : nsIDOMSVGPathSeg
  102.   attribute float   x;
  103.               // raises nsIDOMDOMException on setting
  104.   attribute float   y;
  105.               // raises nsIDOMDOMException on setting
  106. };
  107.  
  108. [scriptable, uuid(ad929b96-ef81-4002-b596-c6a8b3a878e9)]
  109. interface nsIDOMSVGPathSegCurvetoCubicAbs : nsIDOMSVGPathSeg
  110.   attribute float   x;
  111.               // raises nsIDOMDOMException on setting
  112.   attribute float   y;
  113.               // raises nsIDOMDOMException on setting
  114.   attribute float   x1;
  115.               // raises nsIDOMDOMException on setting
  116.   attribute float   y1;
  117.               // raises nsIDOMDOMException on setting
  118.   attribute float   x2;
  119.               // raises nsIDOMDOMException on setting
  120.   attribute float   y2;
  121.               // raises nsIDOMDOMException on setting
  122. };
  123.  
  124. [scriptable, uuid(dc7ba13f-8cb6-48d2-9e22-a4a6817abbb9)]
  125. interface nsIDOMSVGPathSegCurvetoCubicRel : nsIDOMSVGPathSeg
  126.   attribute float   x;
  127.               // raises nsIDOMDOMException on setting
  128.   attribute float   y;
  129.               // raises nsIDOMDOMException on setting
  130.   attribute float   x1;
  131.               // raises nsIDOMDOMException on setting
  132.   attribute float   y1;
  133.               // raises nsIDOMDOMException on setting
  134.   attribute float   x2;
  135.               // raises nsIDOMDOMException on setting
  136.   attribute float   y2;
  137.               // raises nsIDOMDOMException on setting
  138. };
  139.  
  140. [scriptable, uuid(ec4e8f65-5f4a-495e-a5f2-00e18d5e5f96)]
  141. interface nsIDOMSVGPathSegCurvetoQuadraticAbs : nsIDOMSVGPathSeg
  142.   attribute float   x;
  143.               // raises nsIDOMDOMException on setting
  144.   attribute float   y;
  145.               // raises nsIDOMDOMException on setting
  146.   attribute float   x1;
  147.               // raises nsIDOMDOMException on setting
  148.   attribute float   y1;
  149.               // raises nsIDOMDOMException on setting
  150. };
  151.  
  152. [scriptable, uuid(7007113c-e06b-4256-8530-4884d5d769c6)]
  153. interface nsIDOMSVGPathSegCurvetoQuadraticRel : nsIDOMSVGPathSeg
  154.   attribute float   x;
  155.               // raises nsIDOMDOMException on setting
  156.   attribute float   y;
  157.               // raises nsIDOMDOMException on setting
  158.   attribute float   x1;
  159.   // raises nsIDOMDOMException on setting
  160.   attribute float   y1;
  161.   // raises nsIDOMDOMException on setting
  162. };
  163.  
  164. [scriptable, uuid(c26e1779-604b-4bad-8a29-02d2a2113769)]
  165. interface nsIDOMSVGPathSegArcAbs : nsIDOMSVGPathSeg
  166.   attribute float   x;
  167.               // raises nsIDOMDOMException on setting
  168.   attribute float   y;
  169.               // raises nsIDOMDOMException on setting
  170.   attribute float   r1;
  171.               // raises nsIDOMDOMException on setting
  172.   attribute float   r2;
  173.               // raises nsIDOMDOMException on setting
  174.   attribute float   angle;
  175.               // raises nsIDOMDOMException on setting
  176.   attribute boolean largeArcFlag;
  177.               // raises nsIDOMDOMException on setting
  178.   attribute boolean sweepFlag;
  179.               // raises nsIDOMDOMException on setting
  180. };
  181.  
  182. [scriptable, uuid(a685997e-fb47-47c0-a34c-5da11cb66537)]
  183. interface nsIDOMSVGPathSegArcRel : nsIDOMSVGPathSeg
  184.   attribute float   x;
  185.               // raises nsIDOMDOMException on setting
  186.   attribute float   y;
  187.               // raises nsIDOMDOMException on setting
  188.   attribute float   r1;
  189.               // raises nsIDOMDOMException on setting
  190.   attribute float   r2;
  191.               // raises nsIDOMDOMException on setting
  192.   attribute float   angle;
  193.               // raises nsIDOMDOMException on setting
  194.   attribute boolean largeArcFlag;
  195.               // raises nsIDOMDOMException on setting
  196.   attribute boolean sweepFlag;
  197.               // raises nsIDOMDOMException on setting
  198. };
  199.  
  200. [scriptable, uuid(e74b55ef-1c44-4a40-9f51-a2196b11283a)]
  201. interface nsIDOMSVGPathSegLinetoHorizontalAbs : nsIDOMSVGPathSeg
  202.   attribute float   x;
  203.               // raises nsIDOMDOMException on setting
  204. };
  205.  
  206. [scriptable, uuid(0a797fdc-8b60-4cb3-a0da-4c898832ba30)]
  207. interface nsIDOMSVGPathSegLinetoHorizontalRel : nsIDOMSVGPathSeg
  208.   attribute float   x;
  209.               // raises nsIDOMDOMException on setting
  210. };
  211.  
  212. [scriptable, uuid(0811d434-3d90-4eec-8fa2-066dde037917)]
  213. interface nsIDOMSVGPathSegLinetoVerticalAbs : nsIDOMSVGPathSeg
  214.   attribute float   y;
  215.               // raises nsIDOMDOMException on setting
  216. };
  217.  
  218. [scriptable, uuid(93db35b1-6b33-49d5-ad25-1ed1a7611ad2)]
  219. interface nsIDOMSVGPathSegLinetoVerticalRel : nsIDOMSVGPathSeg
  220.   attribute float   y;
  221.               // raises nsIDOMDOMException on setting
  222. };
  223.  
  224. [scriptable, uuid(eb422132-514e-4a1c-81ec-b84a5df5fb96)]
  225. interface nsIDOMSVGPathSegCurvetoCubicSmoothAbs : nsIDOMSVGPathSeg
  226.   attribute float   x;
  227.               // raises nsIDOMDOMException on setting
  228.   attribute float   y;
  229.               // raises nsIDOMDOMException on setting
  230.   attribute float   x2;
  231.               // raises nsIDOMDOMException on setting
  232.   attribute float   y2;
  233.               // raises nsIDOMDOMException on setting
  234. };
  235.  
  236. [scriptable, uuid(5860bccd-f86b-47f8-86c1-cb1245b6a8e1)]
  237. interface nsIDOMSVGPathSegCurvetoCubicSmoothRel : nsIDOMSVGPathSeg
  238.   attribute float   x;
  239.               // raises nsIDOMDOMException on setting
  240.   attribute float   y;
  241.               // raises nsIDOMDOMException on setting
  242.   attribute float   x2;
  243.               // raises nsIDOMDOMException on setting
  244.   attribute float   y2;
  245.               // raises nsIDOMDOMException on setting
  246. };
  247.  
  248. [scriptable, uuid(3ce86063-0a35-48ec-b372-f198b7d04755)]
  249. interface nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs : nsIDOMSVGPathSeg
  250.   attribute float   x;
  251.               // raises nsIDOMDOMException on setting
  252.   attribute float   y;
  253.               // raises nsIDOMDOMException on setting
  254. };
  255.  
  256. [scriptable, uuid(5c0e4d25-a9f1-4aab-936c-2b61ed6c085f)]
  257. interface nsIDOMSVGPathSegCurvetoQuadraticSmoothRel : nsIDOMSVGPathSeg
  258.   attribute float   x;
  259.               // raises nsIDOMDOMException on setting
  260.   attribute float   y;
  261.               // raises nsIDOMDOMException on setting
  262. };
  263.